//
//  AutobotsInterceptor.m
//  AutobotsPlugin
//
//  Created by 张志恒 on 16/9/21.
//  Copyright © 2016年 Autohome. All rights reserved.
//

#import "RTHUDInterceptor.h"

@implementation RTHUDInterceptor

#pragma mark - ABAPIManagerInterceptor
- (void)manager:(ABAPIBaseManager *)manager afterCallingAPIWithParams:(NSDictionary *)params
{
    [RTProgressHUD show];
}

- (void)manager:(ABAPIBaseManager *)manager afterPerformSuccessWithResponse:(ABURLResponse *)response
{
    [RTProgressHUD dismiss];
}

- (void)manager:(ABAPIBaseManager *)manager afterPerformFailWithResponse:(ABURLResponse *)response
{
    [RTProgressHUD dismiss];
}

@end
